<?php
namespace ZfcUser\Model;

class Emailtokens
{
	public $id;
	public $token;
	public $email_id;
	public $status;
	public function exchangeArray($data)
	{
		$this->id	  		= (isset($data['id']))  		? $data['id']    	: null;
        $this->token 	  	= (isset($data['token'])) 		? $data['token'] 	: null;        
        $this->email_id   	= (isset($data['email_id']))  	? $data['email_id']	: null;			
		$this->status      	= (isset($data['status']))		? $data['status']   : null;		
					
	}
	// Add the following method:
	public function getArrayCopy()
	{
		return get_object_vars($this);
	}
}